package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.SysUser;

public interface UserService {
	/**
	 * 用户登录
	 * @param username 用户名
	 * @param password 密 码
	 * @return
	 */
	boolean login(String username,String password);

    SysUser findByUsername(String username);

    PageResult findPage(QueryPageBean queryPageBean);

    SysUser finById(Integer id);

	void edit(Integer[] roleIds, SysUser user);

	void add(Integer[] roleIds, SysUser user);

	void delById(Integer id);
}